From: Cosimo Cecchi Date: Fri, 9 Nov 2012 18:13:22 +0000 (-0500) Subject: screenshot: don't fire flash if we failed to take picture X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5368 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=123fb350ce72e89b7dc72adfa202aad44a9070a0;p=gnome-shell.git screenshot: don't fire flash if we failed to take picture https://bugzilla.gnome.org/show_bug.cgi?id=688004 --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 7a625af37..b4d896615 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -111,7 +111,7 @@ const GnomeShell = new Lang.Class({ }, _onScreenshotComplete: function(obj, result, area, flash, invocation) { - if (flash) { + if (flash && result) { let flashspot = new Flashspot.Flashspot(area); flashspot.fire(); }